Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow whitespaces in START STENCIL directive for name argument #414

Merged
merged 12 commits into from
Apr 10, 2024

Conversation

stelliom
Copy link
Contributor

@stelliom stelliom commented Mar 15, 2024

This PR applies some small changes in the regex matching the name argument specified in Liskov's START STENCIL directives. The new syntax allows having whitespaces on the name line. E.g.:

!$DSL START STENCIL( name = stencil_name      ; &
!$DSL ...

instead of just

!$DSL START STENCIL( name=stencil_name; &
!$DSL ...

@stelliom stelliom requested a review from huppd March 15, 2024 15:16
@stelliom stelliom self-assigned this Mar 15, 2024
@stelliom stelliom added the enhancement New feature or request label Mar 15, 2024
@stelliom
Copy link
Contributor Author

cscs-ci run default

1 similar comment
@huppd
Copy link
Contributor

huppd commented Mar 19, 2024

cscs-ci run default

@muellch
Copy link
Contributor

muellch commented Mar 21, 2024

cscs-ci run default

@muellch
Copy link
Contributor

muellch commented Mar 21, 2024

launch jenkins spack

@stelliom
Copy link
Contributor Author

cscs-ci run default

@stelliom
Copy link
Contributor Author

launch jenkins spack

@stelliom
Copy link
Contributor Author

stelliom commented Apr 2, 2024

cscs-ci run default

@stelliom
Copy link
Contributor Author

stelliom commented Apr 2, 2024

launch jenkins spack

1 similar comment
@stelliom
Copy link
Contributor Author

stelliom commented Apr 8, 2024

launch jenkins spack

@stelliom
Copy link
Contributor Author

stelliom commented Apr 8, 2024

launch jenkins spack

@stelliom
Copy link
Contributor Author

stelliom commented Apr 8, 2024

launch jenkins spack

@stelliom
Copy link
Contributor Author

stelliom commented Apr 8, 2024

launch jenkins spack

@stelliom
Copy link
Contributor Author

stelliom commented Apr 9, 2024

cscs-ci run default

@stelliom
Copy link
Contributor Author

stelliom commented Apr 9, 2024

launch jenkins spack

@stelliom
Copy link
Contributor Author

stelliom commented Apr 9, 2024

cscs-ci run default

@stelliom
Copy link
Contributor Author

stelliom commented Apr 9, 2024

launch jenkins spack

@stelliom
Copy link
Contributor Author

cscs-ci run default

@stelliom
Copy link
Contributor Author

launch jenkins spack

Copy link

Mandatory Tests

Please make sure you run these tests via comment before you merge!

  • cscs-ci run default
  • launch jenkins spack

Optional Tests

To run benchmarks you can use:

  • cscs-ci run benchmark

To run tests and benchmarks with the DaCe backend you can use:

  • cscs-ci run dace

In case your change might affect downstream icon-exclaim, please consider running

  • launch jenkins icon

For more detailed information please look at CI in the EXCLAIM universe.

@stelliom
Copy link
Contributor Author

cscs-ci run default

@stelliom
Copy link
Contributor Author

launch jenkins spack

Copy link
Contributor

@huppd huppd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for adapting the tests.

@stelliom stelliom merged commit 9b90345 into main Apr 10, 2024
5 checks passed
iomaganaris referenced this pull request in iomaganaris/icon4py Jun 18, 2024
* Allow whitespaces in START STENCIL directive for name argument

* Fixed names of stencils used in repeated_stencils test

* Added test for whitespaces in name argument

* Fixed tests for whitespaces not containing DECLARE and IMPORTS directives

* Small fix

* Revert "Fixed names of stencils used in repeated_stencils test"

This reverts commit a7dd889215a8b22ca493cb7fb53fdd2d2b48f4f3.

* Changed test name

---------

Co-authored-by: Mikael Stellio <[email protected]>
@samkellerhals samkellerhals deleted the improve_liskov_stencil_name_syntax_validation branch December 20, 2024 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants